#include "CubeTexture.h"

CCubeTexture::~CCubeTexture()
{
	//Unload();
}

bool CCubeTexture::Loadfile()
{
	if(D3DXCreateCubeTextureFromFile(CORE->GetGraphicsManager()->GetDevice(), m_FileName.c_str(), &m_Texture)==D3D_OK) return true;
	return false;
}
    
void CCubeTexture::Unload()
{
	CHECKED_RELEASE(m_Texture);
}


void CCubeTexture::Activate(size_t StageId)
{
   	CORE->GetGraphicsManager()->GetDevice()->SetTexture(StageId,m_Texture);
}






